<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	.orderStyle{
	  	background: none repeat scroll 0 0 #FFFAE4;
	    border: 1px solid #F8DDB8;
	    line-height: 24px;
	    margin: 0 0 27px;
	    padding: 10px 0 5px 20px;
	    width: 710px;
	}
	tabel tr td{
		border:1 solid red;
		cell-spacing:1px;
		celll-padding:1px;
	}
</style>
</head>
	<table class="table table-bordered table-striped">
		<tr>
			<th width="30">编号</th>
			<th>交易类型</th>
			<th>交易金额</th>
			<th>交易时间</th>
		</tr>
		<c:if test="${fn:length(pager.content)==0 }">
			<tr>
				<td colspan="6">
					您暂时没有提现历史
				</td>
			</tr>
		</c:if>
		<c:forEach var="item" items="${pager.content }" varStatus="status">
			<tr>
				<td><span class="badge">${status.index+1 }</span></td>
				<td>${item.type }</td>
				<td>${item.money }元</td>
				<td>
					<fmt:formatDate value="${item.update_time }" type="both"/>
				</td>
			</tr>
		</c:forEach>
		
	</table>
<!-- 这是之前的，看下没问题就删掉好了
	<div id="pager">
		 <a class="ajaxPage" href="1"  onclick="return false;">首页</a>
		 <a class="ajaxPage" href="${pager.num-1 }" onclick="return false;">上一页</a>
		  当前为${pager.num}页
		 <a class="ajaxPage" href="${pager.num+1 }" onclick="return false;">下一页</a> 
		 <a class="ajaxPage" href="${pager.pages }" onclick="return false;">尾页</a>
	</div>	
-->	
	<div class="pagination">
		<ul>
			<li><a class="ajaxPage" href="javascript:void(0)" onclick="getPage(1)">首页</a></li>
			<li><a class="ajaxPage" href="javascript:void(0)" onclick="getPage(${pager.num-1})">上一页</a></li>
			<li><a class="disabled">当前为${pager.num}页|共${pager.pages }页 </a></li>
			<li><a class="ajaxPage" href="javascript:void(0)" onclick="getPage(${pager.num+1})">下一页</a></li> 
			<li><a class="ajaxPage" href="javascript:void(0)" onclick="getPage(${pager.pages})">尾页</a></li>
		</ul>
	</div>	
</html>

